package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

public interface RoleService {
    List<Role> findAll();//查询所有
    PageResult pageQuery(QueryPageBean queryPageBean);//分页查询角色
    void add(Integer[] permissionIds, Integer[] menuIds, Role role);
    Role findById(int id);
    List<Integer> findPermissionIdsByRoleId(int id);
    List<Integer> findMenuIdsByRoleId(int id);
    void edit(Integer[] permissionIds, Integer[] menuIds, Role role);
    void deleteById(Integer id);

}
